package com.hnkywl.sts.entity.base;

import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by Administrator on 2016/6/22.
 * 说明：     材料信息
 * 包:        com.hnkywl.sts.entity.base
 * 类描述:    材料信息
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_BIZ_Clxx")
@Where(clause = "deleted!='1'")
public class Clxx {
    @Id
    @SequenceGenerator(name = "seqClxx", allocationSize = 1, sequenceName = "SEQ_BIZ_CLXX")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqClxx")
    private Long id;

    //基地
    private String jd;

    //出厂日期
    private Date ccrq;

    //出厂车号
    private String ccch;

    //销售合同号
    private String xshth;

    //材料净重
    private Double cljz;

    //材料毛重
    private Double clmz;

    //材料件数
    private Integer cljs;

    //出库码单号
    private String ckmdh;

    //销售公司名称
    private String xsgsmc;

    //第一收货用户名称
    private String dyshyhmc;

    //第二收货用户名称
    private String deshyhmc;

    //到站名称
    private String dzmc;

    //结算用户名称
    private String jsyhmc;

    //最终用户名称
    private String zzyhmc;

    //规格
    private String gg;

    //牌号
    private String ph;

    //品种名称
    private String pzmc;

    //出库状态
    private String ckzt;

    //创建时间
    private String cjsj;

    //材料号
    private String clh;
    /**
     * 状态（0=在途，1=入库，2=出库）
     */
    private String zt;

    //备注
    private String bz;

    /**
     * 删除标示  0：未删除 1：删除
     */
    @Column(name = "deleted")
    private int deleted = 0;
    /**
     * 新增时间
     */
    @Column(name = "date_created")
    private Date dateCreated = new Date();
    /**
     * 最后更新时间
     */
    @Column(name = "last_updated")
    private Date lastUpdated;


//===================================================
    public Date getCcrq() {
        return ccrq;
    }

    public void setCcrq(Date ccrq) {
        this.ccrq = ccrq;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getJd() {
        return jd;
    }

    public void setJd(String jd) {
        this.jd = jd;
    }

    public String getCcch() {
        return ccch;
    }

    public void setCcch(String ccch) {
        this.ccch = ccch;
    }

    public String getXshth() {
        return xshth;
    }

    public void setXshth(String xshth) {
        this.xshth = xshth;
    }

    public Double getCljz() {
        return cljz;
    }

    public void setCljz(Double cljz) {
        this.cljz = cljz;
    }

    public Double getClmz() {
        return clmz;
    }

    public void setClmz(Double clmz) {
        this.clmz = clmz;
    }

    public Integer getCljs() {
        return cljs;
    }

    public void setCljs(Integer cljs) {
        this.cljs = cljs;
    }

    public String getCkmdh() {
        return ckmdh;
    }

    public void setCkmdh(String ckmdh) {
        this.ckmdh = ckmdh;
    }

    public String getXsgsmc() {
        return xsgsmc;
    }

    public void setXsgsmc(String xsgsmc) {
        this.xsgsmc = xsgsmc;
    }

    public String getDyshyhmc() {
        return dyshyhmc;
    }

    public void setDyshyhmc(String dyshyhmc) {
        this.dyshyhmc = dyshyhmc;
    }

    public String getDeshyhmc() {
        return deshyhmc;
    }

    public void setDeshyhmc(String deshyhmc) {
        this.deshyhmc = deshyhmc;
    }

    public String getDzmc() {
        return dzmc;
    }

    public void setDzmc(String dzmc) {
        this.dzmc = dzmc;
    }

    public String getJsyhmc() {
        return jsyhmc;
    }

    public void setJsyhmc(String jsyhmc) {
        this.jsyhmc = jsyhmc;
    }

    public String getZzyhmc() {
        return zzyhmc;
    }

    public void setZzyhmc(String zzyhmc) {
        this.zzyhmc = zzyhmc;
    }

    public String getGg() {
        return gg;
    }

    public void setGg(String gg) {
        this.gg = gg;
    }

    public String getPh() {
        return ph;
    }

    public void setPh(String ph) {
        this.ph = ph;
    }

    public String getPzmc() {
        return pzmc;
    }

    public void setPzmc(String pzmc) {
        this.pzmc = pzmc;
    }

    public String getCkzt() {
        return ckzt;
    }

    public void setCkzt(String ckzt) {
        this.ckzt = ckzt;
    }

    public String getCjsj() {
        return cjsj;
    }

    public void setCjsj(String cjsj) {
        this.cjsj = cjsj;
    }

    public String getClh() {
        return clh;
    }

    public void setClh(String clh) {
        this.clh = clh;
    }

    public String getZt() {
        return zt;
    }

    public void setZt(String zt) {
        this.zt = zt;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }


    public int getDeleted() {
        return deleted;
    }


    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }


    public Date getLastUpdated() {
        return lastUpdated;
    }

    public void setLastUpdated(Date lastUpdated) {
        this.lastUpdated = lastUpdated;
    }


    public Date getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }
}

